public class MyThreadLockDemo {
    public static void main(String[] args){
        MyThreadLock t1 = new MyThreadLock();
        MyThreadLock t2 = new MyThreadLock();
        MyThreadLock t3 = new MyThreadLock();

        t1.setName("1");
        t2.setName("2");
        t3.setName("3");

        t1.start();
        t2.start();
        t3.start();

    }

}
